﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OProjectList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OProjectList" %>


<form id="pagerForm" method="post" action="MacModel/OProjectList.aspx">
<input type="hidden" name="MachineType" value="<%=MachineType %>" />
<input type="hidden" name="PName" value="<%=PName %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="MacModel/OProjectList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    机型： 
                </td>
                <td>
                    <%= GetMacType("select", "MachineType", MachineType)%>
                  
                </td>
                <td>
                    项目名称： 
                </td>
                <td>
                   <input name="PName" type="text" value="<%=PName %>"  />
                </td>
            </tr>
        </table>
        <div class="subBar">
            <ul>
                <li>
                    <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="MacModel/OProjectAdd.aspx" target="dialog" rel="OProjectAdd"  title="添加项目定义" max=false  mask=true  maxable=false  minable=false  resizable=true drawable=true  width="730" height="400"><span>添加</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteOProject&PID={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.修改))
              {%>
            <li><a class="edit" href="MacModel/OProjectEdit.aspx?pId={sid_user}" target="dialog" rel="OProjectEdit" title="修改项目定义" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="730" height="400"><span>修改</span></a></li>
          <%} %>
        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="138">
        <thead>
            <tr  >                
                <th width="60">
                    机型
                </th>
                <th width="100">
                    项目名称
                </th>
                <th width="100">
                    起始机号
                </th>
                <th width="100">
                    结束机号
                </th>                               
                <th width="60">
                    计划台数
                </th>
                <th width="60">已完成台数</th>
                 <th width="60">未完成台数</th>
                <th width="60">
                    是否完成
                </th> 
                <th width="60">是否显示</th>
                <th width="60">显示顺序</th>
                <th >
                    备注
                </th>
               
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("PID") %>">
				<td><%# Eval("MachineType")%></td>
				<td><%# Eval("PName")%></td>
				<td><%# Eval("TypeSuff")%><%# Eval("StartNum")%></td>
				<td><%# Eval("TypeSuff")%><%# Eval("EndNum")%></td>
				<td><%# Eval("MacNum")%></td>
                 <td><%# Eval("CompleteMacNum")%></td>
                 <td><%# GetNoCompleteNum(Eval("MacNum"), Eval("CompleteMacNum"))%></td>
                <td style="color:<%# Convert.ToBoolean( Eval("IsComplete"))?"":"red" %>"><%# Convert.ToBoolean( Eval("IsComplete"))?"完成":"否"%></td>
                <td style="color:<%# Convert.ToBoolean( Eval("IsShow"))?"":"red" %>"><%# Convert.ToBoolean(Eval("IsShow")) ? "是" : "否"%></td>
                <td><%# Eval("OrderIndex")%></td>
				<td><%# Eval("Remark")%></td>
               
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
